package com;

import org.junit.Before;
import org.junit.Test;

import com.PredictionIoService;
import com.log.PioEventTimeVo;

public class PredictionIoService测试 {
	PredictionIoService predictionIoService = new PredictionIoService();
	@Before
	public void setup() {
		predictionIoService.setAccessKey("lWldWeMtjOo-5GIWScZLmoy5RiCHkXM23Ousxu1wPH556WVKHcJAQ3952Bb9MEyj");
		predictionIoService.setPredictionioUrl("http://96.90.248.213:7070");
	}
	@Test
	public void 测试获取事件时间(){
		
//		for (Integer i = 5430 ; i <5480; i++) {
//			PioEventTimeVo  eventTimeVo	 = predictionIoService.getEvent(i.toString());
//			System.err.println(i+" : "+eventTimeVo);
//		}
		PioEventTimeVo  eventTimeVo	 = predictionIoService.getEventTime("5430");
		System.err.println("5430: "+eventTimeVo);
	}
}
